Case statement with variables and user input